/*
三色LED交通灯模块（红绿黄灯）
*/

int redled =11; 
int yellowled =12; 
int greenled =13; 

void setup() {
pinMode(redled, OUTPUT);
pinMode(yellowled, OUTPUT); 
pinMode(greenled, OUTPUT); 
}
 
void loop() {
digitalWrite(redled, HIGH);
delay(1000);
digitalWrite(redled, LOW); 
digitalWrite(yellowled, HIGH);
delay(200);
digitalWrite(yellowled, LOW);
digitalWrite(greenled, HIGH);
delay(1000);
digitalWrite(greenled, LOW);

}
